var fs = require("fs");
const { promisify } = require("node:util");
const readFile = promisify(fs.readFile);
module.exports = {
  async index(res) {
    res.writeHead(200, { "Content-Type": "text/html" });
    const data = await readFile("index.html");
    res.end(data);
  },

  user(postData, res) {
    // 业务逻辑代码
    console.log(postData);
  },
};
